<?php
/**
 * 功能：
 * 说明：
 * 创建日期：
 * 更新日期：
 * 作者：Mirze
 * 补充说明： 
 * 
 */
include_once('bootstrap.php');

$smarty = Smarty();

/*
mysql_connect("localhost", "root", "123456") or die("Could not connect: " . mysql_error());
mysql_select_db("test");

$result = mysql_query("SELECT id, title FROM test");
mysql_free_result($result);
*/

include_once(LIB_DIR. '/core/Db.php');
$obj = new Db();
$db= $obj->factory();
$sql = "SELECT id, title FROM test";
$res = $db->getAll($sql);
dump($res);




$smarty->assign('test', 'smarty hello');
$smarty->display('index.html');
?>